package com.sanben.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author cyh
 * @description: 用户表实体类
 * @date: 2020-08-11
 */
@Data
@ApiModel(value = "User对象", description = "用户表")
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "用户头像")
    private String userPortrait;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "真实姓名")
    private String really;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "所在城市")
    private Integer regionId;

    @ApiModelProperty("ip")
    private String ip;

}
